import { netPost } from "../utils/index";
import { constants } from "zlib";

export const awardList = () => {
  let param = `query={
    awardList{
      id
      title
      tag
      num
      state
      synopsis
      desc
      open
      img
      startTime
      luckyTime
    }
  }`;
  return netPost(param);
};

export const awardDetail = id => {
  let param = `query={
    awardDetail(
      id: "${id}"
    ){
      id
      title
      tag
      num
      state
      synopsis
      desc
      open
      img
      startTime
      luckyTime
    }
  }`;
  return netPost(param);
};
